home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch16 / 16fig01.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  64 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Axes
  8.         Shape {
  9.             appearance Appearance {
  10.                 material Material {
  11.                     emissiveColor 1.0 1.0 1.0
  12.                     diffuseColor  1.0 1.0 1.0
  13.                 }
  14.             }
  15.             geometry IndexedLineSet {
  16.                 coord Coordinate {
  17.                     point [
  18.                         0.0 0.0 0.0, 10.0 0.0 0.0, 0.0 8.0 0.0
  19.                     ]
  20.                 }
  21.                 coordIndex [ 0, 1, -1,  0, 2, -1 ]
  22.             }
  23.         },
  24.     # Scatter plot with different color points
  25.         Shape {
  26.             # no appearance, use emissive coloring
  27.             geometry PointSet {
  28.                 coord Coordinate {
  29.                     point [
  30.                     # Green points
  31.                         1.0 1.0 0.0,   2.0 4.0 0.0,
  32.                         3.0 5.0 0.0,   4.0 4.0 0.0,
  33.                         5.0 6.0 0.0,   6.0 7.0 0.0,
  34.                         7.0 5.0 0.0,   8.0 6.0 0.0,
  35.                         9.0 4.0 0.0,  10.0 3.0 0.0,
  36.                     # Yellow points
  37.                         1.0 3.0 0.0,   2.0 2.0 0.0,
  38.                         3.0 2.0 0.0,   4.0 1.0 0.0,
  39.                         5.0 2.0 0.0,   6.0 4.0 0.0,
  40.                         7.0 3.0 0.0,   8.0 5.0 0.0,
  41.                         9.0 5.0 0.0,  10.0 6.0 0.0,
  42.                     ]
  43.                 }
  44.                 color Color {
  45.                     color [
  46.                     # Green points
  47.                         0.0 1.0 0.0,   0.0 1.0 0.0,
  48.                         0.0 1.0 0.0,   0.0 1.0 0.0,
  49.                         0.0 1.0 0.0,   0.0 1.0 0.0,
  50.                         0.0 1.0 0.0,   0.0 1.0 0.0,
  51.                         0.0 1.0 0.0,   0.0 1.0 0.0,
  52.                     # Yellow points
  53.                         1.0 1.0 0.0,   1.0 1.0 0.0,
  54.                         1.0 1.0 0.0,   1.0 1.0 0.0,
  55.                         1.0 1.0 0.0,   1.0 1.0 0.0,
  56.                         1.0 1.0 0.0,   1.0 1.0 0.0,
  57.                         1.0 1.0 0.0,   1.0 1.0 0.0,
  58.                     ]
  59.                 }
  60.             }
  61.         }
  62.     ]
  63. }
  64.